home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ftw
/
alphasort.c
next >
Wrap
C/C++ Source or Header
|
1995-05-09
|
411b
|
20 lines
/*
** ALPHASORT
** Trivial sorting predicate for scandir; puts entries in alphabetical order.
*/
#include <sys/types.h>
#include "pdftw.h"
#ifdef RCSID
static char RCS[] = "$Header: /proj/wais/wais-8-b2/lib/RCS/alphasort.c,v 1.1 91/07/17 16:37:56 jonathan Exp $";
#endif /* RCSID */
int
alphasort(d1, d2)
struct dirent **d1;
struct dirent **d2;
{
return strcmp(d1[0]->d_name, d2[0]->d_name);
}